<?php
// +----------------------------------------------------------------------
// | 跃飞 [ 将来的你一定会感激现在奋斗的自己 ]
// +----------------------------------------------------------------------
// | Author: 钟贵廷
// +----------------------------------------------------------------------
// | Author URI: https://git.oschina.net/yeafy
// +----------------------------------------------------------------------
// | weChat:gt845272922  qq:845272922
// +----------------------------------------------------------------------

namespace app\yeafy\factoryMethod\demo2;


class USPizzaFactory implements IFactory
{
    public function createPizza()
    {
        echo "工厂开始生产USPizza<br/>";
        $pizza =  new USPizza();
        $pizza->addFlour();
        $pizza->addWater();
    }

}